﻿using System.Windows;
using System.Windows.Controls;

namespace SFJDManagement
{
    /// <summary>
    /// Page_Abort.xaml 的交互逻辑
    /// </summary>
    public partial class Page_Abort : Page
    {
        StackPanel layout = new StackPanel();

        public Page_Abort()
        {
            InitializeComponent();
            Ini();
            Content = layout;
        }

        private void Ini()
        {
            layout.HorizontalAlignment = HorizontalAlignment.Center;
            layout.VerticalAlignment = VerticalAlignment.Center;

            Label l1 = new Label();
            l1.FontSize = 20;
            l1.Content = "司法鉴定办公助手";
            layout.Children.Add(l1);
            Label l2 = new Label();
            l2.FontSize = 20;
            l2.Content = "用户：" + Runtime.institution;
            layout.Children.Add(l2);
            Label l3 = new Label();
            l3.FontSize = 20;
            l3.Content = "作者：吴戈";
            layout.Children.Add(l3);
            Label l4 = new Label();
            l4.FontSize = 20;
            l4.Content = "版本：" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            layout.Children.Add(l4);
            Label l5 = new Label();
            l5.FontSize = 20;
            l5.Content = "更新：" + System.IO.File.GetLastWriteTime(GetType().Assembly.Location).ToLongDateString();
            layout.Children.Add(l5);
        }
    }
}
